<?php
use yii\helpers\Url;
?>
<div>
<!--    --><?php //var_dump($orgs); ?>
    <table border="1" style="border-collapse:collapse">
        <tr>
            <th width="180px">租户名</th>
            <th width="80px">租户企业码</th>
            <th>链接字符串</th>
            <th width="80px">合同列表</th>
            <th width="80px">套餐列表</th>
            <th width="80px">产品列表</th>
        </tr>
        <?php foreach($orgs['items'] as $org){ ?>
        <tr>
            <td><?php echo $org['FriendlyName'] ?></td>
            <td><?php echo $org['UniqueName'] ?></td>
            <td><?php echo $org['ConnectionString'] ?></td>
            <td><a target="_blank" href="<?php echo Url::toRoute(['mtp/myscrm-organization/get-contracts-list', 'orgname' => $org['UniqueName'], "show" => 1]) ?>">点击</a></td>
            <td><a target="_blank" href="<?php echo Url::toRoute(['mtp/myscrm-organization/get-packages-by-org', 'orgname' => $org['UniqueName'] , "show" => 1]) ?>">点击</a></td>
            <td><a target="_blank" href="<?php echo Url::toRoute(['mtp/myscrm-organization/get-authorized-apps-by-org-name', 'orgname' => $org['UniqueName'] , "show" => 1]) ?>">点击</a></td>

        </tr>
        <?php } ?>
    </table>
</div>